home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CBASE102.ARJ / BASSTR.H < prev    next >
Text File  |  1991-09-23  |  1KB  |  49 lines

  1. /*    Copyright (c) 1989 Citadel    */
  2. /*       All Rights Reserved        */
  3.  
  4. /*man---------------------------------------------------------------------------
  5. NAME
  6.      basstr - BASIC string library
  7.  
  8. SYNOPSIS
  9.      #include "basstr.h"
  10.  
  11. DESCRIPTION
  12.      C library of string functions adapted from BASIC.
  13.  
  14. SEE ALSO
  15.      cvtss.
  16.  
  17. ------------------------------------------------------------------------------*/
  18. #ifndef BASSTR_H    /* prevent multiple includes */
  19. #define BASSTR_H
  20.  
  21. /* #ident    "@(#)basstr.h    1.5 - 91/09/23" */
  22.  
  23. #include <ansi.h>
  24.  
  25. /* macros */
  26. #define NUL    ('\0')    /* nul character */
  27.  
  28. /* function declarations */
  29. #ifdef AC_PROTO
  30. int cvtss(char *t, const char *s, int m, int n);
  31. #else
  32. int cvtss();
  33. #endif
  34.  
  35. /* cvtss m macros */
  36. #define CVT_TP        (0x0001)    /* trim the parity bit */
  37. #define CVT_XSP        (0x0002)    /* discard spaces and tabs */
  38. #define CVT_XCTL    (0x0004)    /* discard control characters */
  39. #define CVT_XLEADSP    (0x0008)    /* discard leading spaces and tabs */
  40. #define CVT_1SP        (0x0010)    /* reduce spaces, tabs to one space */
  41. #define CVT_UPPER    (0x0020)    /* convert lowercase to uppercase */
  42. #define CVT_BTOP    (0x0040)    /* convert [ to ( and ] to ) */
  43. #define CVT_XTRAILSP    (0x0080)    /* discard trailing spaces and tabs */
  44. #define CVT_QUOTES    (0x0100)    /* do not alter chars inside single or
  45.                      double quotes except for parity bit
  46.                      trimming */
  47.  
  48. #endif    /* #ifndef BASSTR_H */
  49.